package ec.edu.ucacue.siop.modelo.recurso;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="variable_alimentacion_asociada")
public class VariableAlimentacionAsociada implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long id;
	private VariableAlimentacion varPrincipal;
	private VariableProceso varProPrincipal;
	private VariableAlimentacion varComponente;
	private String operacion;
	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	@ManyToOne
	public VariableAlimentacion getVarPrincipal() {
		return varPrincipal;
	}
	public void setVarPrincipal(VariableAlimentacion varPrincipal) {
		this.varPrincipal = varPrincipal;
	}
	@ManyToOne
	public VariableProceso getVarProPrincipal() {
		return varProPrincipal;
	}
	public void setVarProPrincipal(VariableProceso varProPrincipal) {
		this.varProPrincipal = varProPrincipal;
	}
	@ManyToOne
	public VariableAlimentacion getVarComponente() {
		return varComponente;
	}
	public void setVarComponente(VariableAlimentacion varComponente) {
		this.varComponente = varComponente;
	}
	@Column(length=32)
	public String getOperacion() {
		return operacion;
	}
	public void setOperacion(String operacion) {
		this.operacion = operacion;
	}
	
}
